"""
求出1-3+5-7+9-…..101的和
"""
sum = 0
temp = 1
for i in range(1, 102, 2):
    i *= temp
    sum += i
    temp *= -1
print(sum)
